package com.clever.mall.service;

import com.clever.mall.commons.dto.DiscountRequestParam;
import com.clever.mall.entity.DisReUser;
import com.clever.mall.vo.DiscountVo;

import java.util.List;

public interface DiscountService {
    //以关键字查询一类的红包
    public List<DiscountVo> findByWord(String msg);
    //领取优惠券,并且判断客户是否已经拥有此种优惠券1.有就增加数量2.无就创建关联
    public int add(List<DiscountRequestParam> list);
    //查询当前用户的此种优惠券
    public DisReUser findByUserIdAndDisId(int userId, int disId);
    //更改用户优惠券的数量
    public int update(DisReUser disReUser);
}
